package com.example.springboot.service;

import com.example.springboot.entity.PopulationStatistics;
import com.example.springboot.mapper.PopulationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 功能：人口数据
 * 作者：陈雷
 * 日期：2024/11/10 15:24
 */

@Service
public class PopulationService {

    @Autowired
    private PopulationMapper populationMapper;

    public List<PopulationStatistics> select2022() {
        return populationMapper.select2022();
    }

    public List<PopulationStatistics> selectAllYear() {
        return populationMapper.selectAllYear();
    }
}